package com.xuetang9.t9.hotel.beans;

import com.fasterxml.jackson.annotation.JsonFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * 黑名单
 * @author PANG
 */
public class BlackList implements Serializable {

    /**
     *黑名单编号
     */
    private Integer blackId;

    /**
     *客人编号
     */
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    private Long guestId;

    /**
     *操作人员编号
     */
    private Integer staffId;

    /**
     *拉黑时间
     */
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date blackDate;

    /**
     *拉黑原因
     */
    private String blackCause;

    //外键
    /**
     * 客人
     * @return
     */
    private Guest guest;

    /**
     * 操作人员
     * @return
     */
    private StaffInfo staffInfo;


    public Guest getGuest() {
        return guest;
    }

    public void setGuest(Guest guest) {
        this.guest = guest;
    }

    public StaffInfo getStaffInfo() {
        return staffInfo;
    }

    public void setStaffInfo(StaffInfo staffInfo) {
        this.staffInfo = staffInfo;
    }

    public Integer getBlackId() {
        return blackId;
    }

    public void setBlackId(Integer blackId) {
        this.blackId = blackId;
    }

    public Long getGuestId() {
        return guestId;
    }

    public void setGuestId(Long guestId) {
        this.guestId = guestId;
    }

    public Integer getStaffId() {
        return staffId;
    }

    public void setStaffId(Integer staffId) {
        this.staffId = staffId;
    }

    public Date getBlackDate() {
        return blackDate;
    }

    public void setBlackDate(Date blackDate) {
        this.blackDate = blackDate;
    }

    public String getBlackCause() {
        return blackCause;
    }

    public void setBlackCause(String blackCause) {
        this.blackCause = blackCause;
    }

    @Override
    public String toString() {
        return "BlackList{" +
                "blackId=" + blackId +
                ", guestId=" + guestId +
                ", staffId=" + staffId +
                ", blackDate=" + blackDate +
                ", blackCause='" + blackCause + '\'' +
                ", guest=" + guest +
                ", staffInfo=" + staffInfo +
                '}';
    }
}
